﻿/***************************************************************************
*		功能：     客户名称实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 客户名称
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_Customer", EntityName = "Customer")]
	public partial class Customer :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return CustomerId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// CustomerId
		/// </summary>
		[HColumn("CustomerId", Remake = "CustomerId", DataType = "int" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int CustomerId { set; get; }
        

		/// <summary>
		/// 客户名称
		/// </summary>
		[HColumn("CustName", Remake = "客户名称", DataType = "Nvarchar" , Length =40 , IsUniqueness = true)]
		public string CustName { set; get; }
        

		/// <summary>
		/// 拼音首拼
		/// </summary>
		[HColumn("Py", Remake = "拼音首拼", DataType = "Nvarchar" , Length =40)]
		public string Py { set; get; }
        

		/// <summary>
		/// 联系方式
		/// </summary>
		[HColumn("LinkInfo", Remake = "联系方式", DataType = "Nvarchar" , Length =200 , IsNullable = true)]
		public string LinkInfo { set; get; }
        

		/// <summary>
		/// 备注
		/// </summary>
		[HColumn("Memo", Remake = "备注", DataType = "text" , IsNullable = true)]
		public string Memo { set; get; }
        

		/// <summary>
		/// 应付账款
		/// </summary>
		[HColumn("NeedPay", Remake = "应付账款", DataType = "decimal" , Length =14)]
		public decimal NeedPay { set; get; }
        

		/// <summary>
		/// 货品价格表
		/// </summary>
		[HColumn("ItemPrice", Remake = "货品价格表", DataType = "text" , IsNullable = true)]
		public string ItemPrice { set; get; }
        

		/// <summary>
		/// 最后付款时间
		/// </summary>
		[HColumn("LastPayTime", Remake = "最后付款时间", DataType = "datetime" , IsNullable = true)]
		public DateTime? LastPayTime { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// CustomerId
			 /// </summary>
			 public static Field CustomerId = new Field("T_Customer","CustomerId");
	    	 

			 /// <summary>
			 /// 客户名称
			 /// </summary>
			 public static Field CustName = new Field("T_Customer","CustName");
	    	 

			 /// <summary>
			 /// 拼音首拼
			 /// </summary>
			 public static Field Py = new Field("T_Customer","Py");
	    	 

			 /// <summary>
			 /// 联系方式
			 /// </summary>
			 public static Field LinkInfo = new Field("T_Customer","LinkInfo");
	    	 

			 /// <summary>
			 /// 备注
			 /// </summary>
			 public static Field Memo = new Field("T_Customer","Memo");
	    	 

			 /// <summary>
			 /// 应付账款
			 /// </summary>
			 public static Field NeedPay = new Field("T_Customer","NeedPay");
	    	 

			 /// <summary>
			 /// 货品价格表
			 /// </summary>
			 public static Field ItemPrice = new Field("T_Customer","ItemPrice");
	    	 

			 /// <summary>
			 /// 最后付款时间
			 /// </summary>
			 public static Field LastPayTime = new Field("T_Customer","LastPayTime");
	    	 

        }
        #endregion
		  
	 
	}
    
}